import Layout from './page/Layout'
import { Route, Switch, BrowserRouter as Router } from 'react-router-dom'
import City from './page/CityList'
import Map from './page/Map'

function App() {
  return (
    <Router>
      <div className="App">
        <Layout></Layout>
        <Switch>
          <Route exact path="/city" component={City}></Route>
          <Route exact path="/map" component={Map}></Route>
        </Switch>
      </div>
    </Router>
  )
}

export default App
